<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ajax="https://ajax4jsf.dev.java.net/ajax"
	xmlns:s="http://jboss.com/products/seam/taglib">

<ui:composition template="/WEB-INF/template.xhtml">
	<ui:define name="topnav">
		<ui:include src="/include/admin_nav.xhtml" />
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/include/left_nav.xhtml" />
	</ui:define>
	<ui:define name="body">
		<div class="body-title">User Manager System</div>
		<h:form styleClass="register-new-user">
			<s:link id="register" view="/admin/register.xhtml"
				value="New User" />
		</h:form>
		<rich:dataTable value="#{authenticator.users}" var="user"
			rendered="#{not empty users}" width="100%">
			<h:column>
				<f:facet name="header">Name</f:facet>
				<h:outputText value="#{user.name}" />
			</h:column>
			<h:column>
				<f:facet name="header">User Name</f:facet>
				<h:outputText value="#{user.username}" />
			</h:column>
			<h:column>
				<f:facet name="header">Password</f:facet>
				<h:outputText value="#{user.password}" />
			</h:column>
			<h:column>
				<f:facet name="header">Delete</f:facet>
				<s:link id="delete" value="Delete" action="#{authenticator.delete}" />
			</h:column>
		</rich:dataTable>

	</ui:define>
</ui:composition>

</html>